<template>
  <div class="research2">
    <nuxt-link to="/news/dailynews" target="_blank">
      <h1 class="title">每日财讯</h1>
    </nuxt-link>
      
      <ul>
              <li  v-for="(item,index) in newdata" :key="index">
                     <h2><span class="yuandian"></span><span>{{item.createtime.slice(0,11)}}</span></h2>
                      <nuxt-link target="_blank" :to="'/post/' + item.pid">{{item.name}}</nuxt-link>
              </li>
          </ul>
          

  </div>
</template>

<script>
export default {
  props: {
    newdata: {
      type: Array,
      default: function() {
        return [];
      }
    }
  }
};
</script>

<style scoped>
.research2 {
  width: 100%;
  background: white;
  padding: 20px 20px 18px;
  box-sizing: border-box;
}
.title {
  font-size: 22px;
  color: #cd9c54;
}
ul{
    border-left: 1px solid #e6e6e6;
    margin-top: 40px;
}
.yuandian{
    display: inline-block;
    border-radius: 50%;
    height: 10px;
    width: 10px;
    vertical-align: middle;
    background: white;
    border: 1px solid #e6e6e6;
    margin-right: 10px;
}
ul li h2 span{
    font-size: 16px;
    vertical-align: middle;    
    font-weight: bolder;
}
ul li{
    margin-bottom: 20px;
    margin-left: -6px;
}
ul li:hover .yuandian{
    background: #cd9c54;
}
ul li a{
   margin-top: 20px;
   padding-left: 20px;
   display: inline-block;
   cursor: pointer;
   font-size: 16px;
   line-height: 1.2;
   color: #666;
   height: 57px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

</style>

